conda deactivate
conda activate report_service
export NACOS_SERVER=10.8.0.25:8848
export NACOS_NAMESPACE=public
export HOST_PORT=8000
nohup python manage.py runserver 0.0.0.0:8000 --noreload > /dev/null 2>&1 &
nohup celery -A reportservice worker --loglevel=info > /dev/null 2>&1 &


ps -ef | grep celery
# 数据库同步
export NACOS_SERVER=10.8.0.25:8848
export NACOS_NAMESPACE=public
export HOST_PORT=8000
python manage.py makemigrations
python manage.py migrate



# 测试
gunicorn reportservice.wsgi:application --bind 0.0.0.0:8000
export HOMEBREW_NO_AUTO_UPDATE=1

# 单元测试
python manage.py test yida_app_service.chengxiang.test.YidaTest.test_digital_sign_add_record --noinput
nohup python manage.py test yida_app_service.chengxiang.test.YidaTest.update_bzy_by_upload_report --noinput > /root/xm-detection-service/yida_app_service/chengxiang/test.log 2>&1 &
